package com.lcf.system.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import com.lcf.framework.config.enums.BaseEnum;
import lombok.Getter;

/**
 * 菜单用途枚举
 * 菜单用途1平台2租户
 *
 * @author lcf
 */
@Getter
public enum SysMenuUseEnum implements BaseEnum<Integer> {
    PLATFORM(1, "平台"),
    TENANT(2, "租户");

    @EnumValue
    @JsonValue
    private final Integer code;
    private final String name;

    SysMenuUseEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }
}
